package com.jzlin.funhub.framework.core.http;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * .
 *
 * @author linjz
 * @since 2025/5/26
 */
@Data
@ApiModel("分页参数")
public class PageReq {
    @NotNull(message = "当前页码不能为空")
    @ApiModelProperty(value = "当前页码，从1开始", example = "1")
    private Integer current = 1;

    @NotNull(message = "分页大小不能为空")
    @ApiModelProperty(value = "分页大小", example = "10")
    private Integer size = 10;
}
